/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2212 2213
 * @Package: PACKAGE_NAME
 * @File: LoopEmbedded5.java
 * @Time: 2022/12/8 15:42
 * @Author: abcque
 * @Description: 百钱白鸡问题
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class LoopEmbedded5 {
    public static void main(String[] args) {
        for (int x = 0; x <= 100 ; x++) {
            for (int y = 0; y <= 100; y++) {
                for (int z = 0; z <= 100; z = z + 3) {
                    if ((x + y + z == 100) &&(5 * x + 3 * y + z / 3 == 100)) {
                        System.out.println("x = " + x);
                        System.out.println("y = " + y);
                        System.out.println("z = " + z);
                        System.out.println();
                    }
                }
            }
        }
    }
}
